interface Pingable{
    ping():void
}

class Sonar implements Pingable{
    ping(): void {
        console.log("Sonar ping!");
    }
}

class Ball implements Pingable{
    ping(): void {
        console.log("Ball ping!");
    }
}

